package com.hxzy.service.impl;

import com.hxzy.entity.TbExpressInfo;
import com.hxzy.mapper.TbExpressInfoMapper;
import com.hxzy.service.TbExpressInfoService;
import com.hxzy.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

public class TbExpressInfoServiceImpl implements TbExpressInfoService {
    @Override
    public TbExpressInfo selectByPrimaryKey(Integer id) {
        TbExpressInfo tbExpressInfo=null;
        try (SqlSession session= MybatisUtil.getSqlSessionFactory().openSession()){
            TbExpressInfoMapper mapper = session.getMapper(TbExpressInfoMapper.class);
            tbExpressInfo=mapper.selectByPrimaryKey(id);
        }
        return tbExpressInfo;
    }


}
